package com.sc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public class JWTProperties {

    // 密钥
    private String secretKey;

    // 持续时间
    private Long ttl;

    // 令牌名称
    private String token;
}